home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
ambos-update
/
update
< prev
next >
Wrap
Text File
|
1999-05-17
|
22KB
|
833 lines
FailAt 21
; $VER: AmBoS-Updater 1.1 (05.05.99)
Echo "H=== AmBoS-Updater, © 1999 AmBoS-Team, written by L.Maschmann*n"
Echo "Checkliste:*n"
Echo "- Aktualisierung von AmBoS und ZConnect-Modul"
Echo "- Sicherheitskopien werden automatisch erzeugt"
Echo "- Konfigurationsdateien werden nicht überschrieben"
Echo "- Backups werden im Verzeichnis 'Backup:Update.x' abgelegt"
Echo "- AmBoS sollte vor dem Ausführen beendet werden"
Echo "- Assigns BBS: und Backup: müssen gesetzt sein"
Echo "- AmBoS-Libs an 'falschen' Orten werden umbenannt"
Ask "*nFortsetzen und Aktualisierung beginnen? y=ja, n=nein"
If not warn
Quit 20
EndIf
Assign >NIL: BBS: exists
If warn
Echo "Assign BBS: nicht gefunden!"
Wait 5
Quit 20
EndIf
Assign >NIL: Backup: exists
If warn
Echo "Assign Backup: nicht gefunden!"
Wait 5
Quit 20
EndIf
Status >NIL: com=BBS:AmBoS
If not warn
Echo "AmBoS noch aktiv. Bitte AmBoS beenden!"
Wait 5
Quit 20
EndIf
Status >NIL: com=bbs:modules/zconnect.mod
If not warn
Echo "AmBoS noch aktiv. Bitte AmBoS beenden!"
Wait 5
Quit 20
EndIf
Set value "0"
Lab GetLoop
If exists Backup:Update.$value
Set value `eval $value + 1`
Skip GetLoop back
EndIf
Set back Backup:Update.$value
UnSet value
MakeDir $back
Avail >NIL: flush
Echo "*nBackup-Verzeichnis: '$back'*n"
Echo "--- Sichere Konfigurationsdateien"
MakeDir $back/Setup
If exists BBS:Setup
Copy BBS:Setup/#? $back/Setup all quiet
EndIf
If exists BBS:Netz
Copy BBS:Netz/ZConnectAreaBretter#? $back/Setup quiet
EndIf
Echo "--- Überprüfe Verzeichnisstruktur"
If not exists BBS:Netz
MakeDir BBS:Netz
EndIf
If not exists BBS:Netz/AutoPOINT
MakeDir BBS:Netz/AutoPOINT
EndIf
If not exists BBS:Setup
MakeDir BBS:Setup
EndIf
If not exists BBS:AutoPOINTs
MakeDir BBS:AutoPoints
EndIf
If not exists BBS:Texte
MakeDir BBS:Texte
EndIf
If not exists BBS:Texte/deutsch
MakeDir BBS:Texte/deutsch
EndIf
If not exists BBS:Texte/english
MakeDir BBS:Texte/english
EndIf
If not exists BBS:Texte/français
MakeDir BBS:Texte/français
EndIf
If not exists BBS:Protokolle
MakeDir BBS:Protokolle
EndIf
If not exists BBS:Netz/Texte
MakeDir BBS:Netz/Texte
EndIf
If not exists BBS:OnlineMenu
MakeDir BBS:OnlineMenu
EndIf
If not exists BBS:OnlineMenu/Rahmen
MakeDir BBS:OnlineMenu/Rahmen
EndIf
If not exists BBS:OnlineMenu/Hintergründe
MakeDir BBS:OnlineMenu/Hintergründe
EndIf
If not exists BBS:OnlineMenu/Hilfe
MakeDir BBS:OnlineMenu/Hilfe
EndIf
If not exists BBS:Modules
MakeDir BBS:Modules
EndIf
If not exists BBS:Libs
MakeDir BBS:Libs
Endif
Echo "--- Kopiere SystemNachrichten"
If exists BBS:Texte/SystemNachrichten.txt
Copy BBS:Texte/SystemNachrichten.txt $back
Protect BBS:Texte/SystemNachrichten.txt wd add
EndIf
Copy AmBoS/Texte/SystemNachrichten.txt BBS:Texte
Echo "--- Kopiere AmBoS und AmBoS.info"
If exists BBS:AmBoS
Copy BBS:AmBoS $back
Protect BBS:AmBoS wd add
EndIf
Copy AmBoS/AmBoS BBS:
If exists BBS:AmBoS.info
Copy BBS:AmBoS.info $back
Protect BBS:AmBoS.info wd add
EndIf
Copy AmBoS/AmBoS.info BBS:
If exists SYS:WBStartup/AmBoS
Copy SYS:WBStartup/AmBoS $back
Protect SYS:WBStartup/AmBoS wd add
Copy AmBoS/AmBoS SYS:WBStartup
EndIf
If exists SYS:WBStartup/AmBoS.info
Copy SYS:WBStartup/AmBoS.info $back
Protect SYS:WBStartup/AmBoS.info wd add
Copy AmBoS/AmBoS.info SYS:WBStartup
EndIf
Echo "--- Kopiere AmBoS-Handler"
If exists BBS:AmBoS-Handler
Copy BBS:AmBoS-Handler $back
Protect BBS:AmBoS-Handler wd add
EndIf
Copy AmBoS/AmBoS-Handler BBS:
Echo "--- Kopiere AmBoS-Anleitung-Loader"
If exists BBS:AmBoS-Anleitung
Protect BBS:AmBoS-Anleitung wd add
Copy BBS:AmBoS-Anleitung $back
EndIf
Copy AmBoS/AmBoS-Anleitung BBS:
Protect BBS:AmBoS-Anleitung s add
If exists BBS:AmBoS-Anleitung.info
Protect BBS:AmBoS-Anleitung.info wd add
Copy BBS:AmBoS-Anleitung.info $back
EndIf
Copy AmBoS/AmBoS-Anleitung.info BBS:
Echo "--- Erstelle neue GuideFiles-Struktur"
MakeDir $back/GuideFiles
If exists BBS:Guidefiles
Copy BBS:Guidefiles/#? $back/Guidefiles all quiet
Delete BBS:Guidefiles/#? all force quiet
Else
MakeDir BBS:Guidefiles
EndIf
Copy AmBoS/Guidefiles/#? BBS:Guidefiles all quiet
If exists BBS:Guidefiles.info
Protect BBS:Guidefiles.info wd add
EndIf
Copy AmBoS/Guidefiles.info BBS:
Echo "--- Kopiere Sprachenkataloge"
MakeDir $back/Catalogs
If exists BBS:Catalogs
Copy BBS:Catalogs/#? $back/Catalogs all quiet
Delete BBS:Catalogs/#? all force quiet
Else
MakeDir BBS:Catalogs
EndIf
Copy AmBoS/Catalogs/#? BBS:Catalogs all quiet
Echo "--- Kopiere AmBoS-Libraries"
MakeDir $back/Libs
If exists BBS:Libs/ambosgui.library
Copy BBS:Libs/ambosgui.library $back/Libs
Protect BBS:Libs/ambosgui.library wd add
EndIf
Copy AmBoS/Libs/ambosgui.library BBS:Libs
If exists LIBS:ambosgui.library
Echo "Benenne LIBS:ambosgui.library um!"
Rename LIBS:ambosgui.library LIBS:$ambosgui.library$
Filenote LIBS:$ambosgui.library$ "Diese Library gehört eigentlich nach BBS:Libs!"
EndIf
If exists BBS:Libs/amboscgi.library
Copy BBS:Libs/amboscgi.library $back/Libs
Protect BBS:Libs/amboscgi.library wd add
EndIf
Copy AmBoS/Libs/amboscgi.library BBS:Libs
If exists LIBS:amboscgi.library
Echo "Benenne LIBS:amboscgi.library um!"
Rename LIBS:amboscgi.library LIBS:$amboscgi.library$
Filenote LIBS:$amboscgi.library$ "Diese Library gehört eigentlich nach BBS:Libs!"
EndIf
If exists BBS:Libs/AutoPOINT.library
Copy BBS:Libs/AutoPOINT.library $back/Libs
Protect BBS:Libs/AutoPOINT.library wd add
EndIf
Copy AmBoS/Libs/AutoPoint.library BBS:Libs
If exists LIBS:AutoPOINT.library
Echo "Benenne LIBS:AutoPOINT.library um!"
Rename LIBS:AutoPOINT.library LIBS:$AutoPOINT.library$
Filenote LIBS:$AutoPOINT.library$ "Diese Library gehört eigentlich nach BBS:Libs!"
EndIf
If exists BBS:Libs/ZConnect.library
Copy BBS:Libs/ZConnect.library $back/Libs
Protect BBS:Libs/ZConnect.library wd add
EndIf
Copy AmBoS/Libs/ZConnect.library BBS:Libs
If exists LIBS:ZConnect.library
Echo "Benenne LIBS:ZConnect.library um!"
Rename LIBS:ZConnect.library LIBS:$ZConnect.library$
Filenote LIBS:$ZConnect.library$ "Diese Library gehört eigentlich nach BBS:Libs!"
EndIf
Echo "--- Kopiere Maps-Autopoints"
If exists BBS:Netz/AutoPoint/EditNewBrettListe
Copy BBS:Netz/AutoPoint/EditNewBrettListe $back
Protect BBS:Netz/AutoPoint/EditNewBrettListe wd add
EndIf
Copy AmBoS/Netz/AutoPoint/EditNewBrettListe BBS:Netz/AutoPoint
If exists BBS:Netz/AutoPoint/EditNewHelpTxt
Copy BBS:Netz/AutoPoint/EditNewHelpTxt $back
Protect BBS:Netz/AutoPoint/EditNewHelpTxt wd add
EndIf
Copy AmBoS/Netz/AutoPoint/EditNewHelpTxt BBS:Netz/AutoPoint
Echo "--- Kopiere System-Libraries"
If exists LIBS:BBS.library
Copy LIBS:BBS.library $back/Libs
Protect LIBS:BBS.library wd add
EndIf
Copy Libs/BBS.library LIBS:
If exists BBS:Libs/BBS.library
Echo "Benenne BBS:Libs/BBS.library um!"
Rename BBS:Libs/BBS.Library BBS:Libs/$BBS.library$
Filenote BBS:Libs/$BBS.library$ "Diese Library gehört eigentlich nach LIBS:!"
EndIf
If exists LIBS:asyncio.library
Copy LIBS:asyncio.library $back/Libs
Protect LIBS:asyncio.library wd add
EndIf
Copy Libs/asyncio.library LIBS:
If exists BBS:Libs/asyncio.library
Echo "Benenne BBS:Libs/asyncio.library um!"
Rename BBS:Libs/asyncio.library BBS:Libs/$asyncio.library$
Filenote BBS:Libs/$asyncio.library$ "Diese Library gehört eigentlich nach LIBS:!"
EndIf
Echo "--- Kopiere System-Fonts"
MakeDir $back/Fonts
If exists FONTS:ambos.font
Copy FONTS:ambos.font $back/Fonts
Delete FONTS:ambos.font force quiet
EndIf
MakeDir $back/Fonts/ambos
If exists FONTS:ambos
Copy FONTS:ambos/#? $back/Fonts/ambos all quiet
Delete FONTS:ambos all force quiet
EndIf
Copy Fonts/#? FONTS: all quiet
Echo "--- Kopiere ZConnect.mod"
If exists BBS:Modules/ZConnect.mod
Copy BBS:Modules/ZConnect.mod $back
Protect BBS:Modules/ZConnect.mod wd add
EndIf
Copy AmBoS/Modules/ZConnect.mod BBS:Modules
If exists BBS:Modules/ZNetz.mod
Echo "Verschiebe ZNetz.mod nach $back."
Copy BBS:Modules/ZNetz.mod $back
Delete BBS:Modules/ZNetz.mod force quiet
EndIf
Echo "--- Kopiere ZConnect_Editor"
If exists BBS:ZConnect_Editor
Copy BBS:ZConnect_Editor $back
Protect BBS:ZConnect_Editor wd add
EndIf
Copy AmBoS/ZConnect_Editor BBS:
If exists BBS:ZConnect_Edito